\hypertarget{class_string_filter}{\section{String\+Filter类 参考}
\label{class_string_filter}\index{String\+Filter@{String\+Filter}}
}


字符串筛查器.  




{\ttfamily \#include $<$String\+Filter.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_string_filter_ae5dab7b6c0c9988f91c461ee856b27f2}{{\bfseries String\+Filter} (const char $\ast$start\+Flag, int start\+Flag\+Len, const char $\ast$end\+Flag, int end\+Flag\+Size)}\label{class_string_filter_ae5dab7b6c0c9988f91c461ee856b27f2}

\item 
std\+::vector$<$ std\+::string $>$ \hyperlink{class_string_filter_a51600e5a1faf0fd03d3a3aa3aa017cae}{filter\+On} (const char $\ast$buf, int size)
\begin{DoxyCompactList}\small\item\em 字符串筛查 \end{DoxyCompactList}\item 
void \hyperlink{class_string_filter_a41fcf912a91e4a6e79eb5ca26752bd62}{add\+Special\+Rule} (const char $\ast$start\+Flag, int start\+Flag\+Len, const char $\ast$end\+Flag, int end\+Flag\+Len)
\begin{DoxyCompactList}\small\item\em 增加特殊过滤规则 \end{DoxyCompactList}\item 
\hypertarget{class_string_filter_ac1cd75219f234f39d37c6546f4e1e3c8}{void {\bfseries clear} ()}\label{class_string_filter_ac1cd75219f234f39d37c6546f4e1e3c8}

\end{DoxyCompactItemize}


\subsection{详细描述}
字符串筛查器. 

\subsection{成员函数说明}
\hypertarget{class_string_filter_a41fcf912a91e4a6e79eb5ca26752bd62}{\index{String\+Filter@{String\+Filter}!add\+Special\+Rule@{add\+Special\+Rule}}
\index{add\+Special\+Rule@{add\+Special\+Rule}!String\+Filter@{String\+Filter}}
\subsubsection[{add\+Special\+Rule}]{\setlength{\rightskip}{0pt plus 5cm}void String\+Filter\+::add\+Special\+Rule (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{start\+Flag, }
\item[{int}]{start\+Flag\+Len, }
\item[{const char $\ast$}]{end\+Flag, }
\item[{int}]{end\+Flag\+Len}
\end{DoxyParamCaption}
)}}\label{class_string_filter_a41fcf912a91e4a6e79eb5ca26752bd62}


增加特殊过滤规则 


\begin{DoxyParams}{参数}
{\em start\+Flag} & 开始标识 \\
\hline
{\em start\+Flag\+Len开始标识的长度} & \\
\hline
{\em end\+Flag} & 结束标识 \\
\hline
{\em end\+Flag\+Len} & 结束标识的长度 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
注意\+:使用该函数添加特殊规则时,先添加的优先级更高, 请确保最特殊的规则放在最先添加,并且规则之间不能存 在包含关系(如\+A规则是\+B规则的子集,即\+A规则范围小,B规 则范围大,则\+A会被\+B规则屏蔽,将无法匹配到子集)!!! 
\end{DoxyNote}
\hypertarget{class_string_filter_a51600e5a1faf0fd03d3a3aa3aa017cae}{\index{String\+Filter@{String\+Filter}!filter\+On@{filter\+On}}
\index{filter\+On@{filter\+On}!String\+Filter@{String\+Filter}}
\subsubsection[{filter\+On}]{\setlength{\rightskip}{0pt plus 5cm}std\+::vector$<$ std\+::string $>$ String\+Filter\+::filter\+On (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{buf, }
\item[{int}]{size}
\end{DoxyParamCaption}
)}}\label{class_string_filter_a51600e5a1faf0fd03d3a3aa3aa017cae}


字符串筛查 


\begin{DoxyParams}{参数}
{\em buf} & 要筛查的字串 \\
\hline
{\em size} & buf的长度 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回筛查到的符合规则的字符串 
\end{DoxyReturn}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_string_filter_8h}{String\+Filter.\+h}\item 
libemb/src/String\+Filter.\+cpp\end{DoxyCompactItemize}
